﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using SES.CMS.DO;
using SES.CMS.BL;

namespace SES.CMS
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Page.Title = Ultility.PageTitle();
            HtmlMeta metaDesc = new HtmlMeta();
            metaDesc.Name = "description";
            metaDesc.Content = new sysConfigBL().Select(new sysConfigDO { ConfigID = 1 }).ConfigValue;
            Page.Header.Controls.Add(metaDesc);

            string video = new sysConfigBL().Select(new sysConfigDO { ConfigID = 7 }).ConfigValue;
            video = "http://youtube.com/embed/" + video.Substring(video.IndexOf('=') + 1);
            this.ifVideo.Attributes.Add("src", video);
        }

    }
}
